package com.lbx.springcloud.service.impl;

import com.lbx.springcloud.mapper.DeptMapper;
import com.lbx.springcloud.pojo.Dept;
import com.lbx.springcloud.service.DeptService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 吕兵星
 * @date 2020/11/8 15:53
 */
@Service
public class DeptServiceImpl implements DeptService {
    @Autowired
    private DeptMapper deptMapper;
    @Override
    public Dept getById(long id) {
        return deptMapper.getById(id);
    }

    @Override
    public List<Dept> getAll() {
        return deptMapper.getAll();
    }

    @Override
    public int addDept(Dept dept) {
        return deptMapper.addDept(dept);
    }
}
